package model;

import entity.SysUserEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by pc on 2018/4/30.
 */
public class SysUserServiceImp implements SysUserService{
    private SysUserDao userDao;
    public SysUserServiceImp() {
        userDao=new SysUserDao();
    }
    @Override
    public List<SysUserEntity> queryUser(Map<String,Object> params) {
        return userDao.queryUser(params);
    }
    @Override
    public int queryUserCount(Map<String, Object> params) {
        return userDao.queryUserCount(params);
    }
    @Override
    public int insertUser(SysUserEntity user) {
        return userDao.insertUser(user);
    }
    @Override
    public int updateUser(SysUserEntity user) {
        return userDao.updateUser(user);
    }
    @Override
    public int deleteUser(Integer userId) {
        return userDao.deleteUser(userId);
    }
    @Override
    public int deleteBatchUser(Integer[] userIds) {
        return userDao.deleteBatchUser(userIds);
    }
}
